function Complete ({ todo }) {
  const { isCompleted, complete } = todo;

  return (
    <input
      className="toggle"
      type="checkbox"
      checked={isCompleted}
      onChange={complete}
    />
  );
}

export default Complete;